<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
          xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head  th:replace="top::html">
  <title>资源列表</title>
</head>

<body class="fixed hold-transition skin-blue">
<div class="wrapper">

  <!-- Main Header -->

    <div th:replace="tophtml::html" ></div>
  <!-- Left side column. contains the logo and sidebar -->
  <div th:replace="left::html" ></div>


  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
    	    功能列表
        <small></small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Level</a></li>
        <li class="active">Here</li>
      </ol>
    </section>

    <!-- Main content -->
    <section class="content container-fluid">

      <!--------------------------
        | Your Page Content Here |
        -------------------------->
        
          <form th:action="@{/permission/showPermissionList}" method="get" id="from1">
       <div class="form-group">
                  <input style="width: 500px; display:inline" type="text" class="form-control" placeholder="资源名称或URL" name="searchKeyword" th:value="${searchKeyword}">
                  <button type="submit" class="btn btn-primary">检索</button>
                  <input type="hidden" name="pageNo" id="pageNo" th:value="${pageInfo.pageNum}"/>
         </div>
         
       </form>
<div class="box">
            <div class="box-header with-border">
              <h3 class="box-title"></h3>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <table class="table table-bordered">
                <tbody>
               <tr>
                 <th>序号</th>
                  <th >资源ID</th>
                  <th>资源名称</th>
                  <th>资源url</th>
                  <th >资源描述</th>
                  <th >父资源名称</th>
                   <th >操作</th>
                </tr>
                <tr th:each="collect,iterStat : ${pageInfo.list}">
                <td th:text="${iterStat.index+1}">1.</td>
                  <td th:text="${collect.pid}">1.</td>
                  <td th:text="${collect.name}">1.</td>
                  <td th:text="${collect.url}">1.</td>
                  <td th:text="${collect.description}">1.</td>
            	 <td >
            	 
            	  <span style="padding-left: 15px;" th:each="ss:${collect.par}" th:text="${ss.name}" />
            	 
            	 </td>
         
               	  <td><a href="/permission/showAddPermission">添加</a>|<a  th:href="@{'/permission/showUpdatePermission?permissionId='+${collect.pid}}">修改</a></td>
                </tr>
                <tr>
                  
                </tr>
               
              </tbody>
              </table>
            </div>
            <!-- /.box-body -->
        

<div th:replace="page::html" ></div>
            
            
            
            
          </div>



    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

  <!-- Main Footer -->

  <div th:replace="footer::html" ></div>

  <div class="control-sidebar-bg"></div>
</div>

<div th:replace="bottom::html" ></div>
</body>
</html>